class MyException:
    def testException(self):
        strs = 's123';
        try:
            num = int(strs);
            return 1;
        except Exception as rs:
            print(rs);
            return 2;
        finally:
            print("执行了");
            return 4;

    def demo1(self):
        return int(input("输入整数:"))
